import { Upload, UploadProps } from "antd"


const UploadForm = ({onChange, children}:UploadProps)=>{
 return <Upload onChange={(e)=>onChange(e.file.originFileObj as any)} beforeUpload={()=>false}>
    {children}
 </Upload>
}
export default UploadForm